package com.itfitness.fitnesslib.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

import com.itfitness.fitnesslib.R;
import com.itfitness.ftlib.widget.tabview.FTabItemBean;
import com.itfitness.ftlib.widget.tabview.FTabView;

import java.util.ArrayList;

/**
 * @ProjectName: FitnessLib
 * @Package: com.itfitness.fitnesslib.activity
 * @ClassName: CustomTabActivity
 * @Description: java类作用描述 自定义底部导航
 * @Author: 作者名
 * @CreateDate: 2020/11/22 17:00
 * @UpdateUser: 更新者：itfitness
 * @UpdateDate: 2020/11/22 17:00
 * @UpdateRemark: 更新说明：
 * @Version: 1.0
 */
public class CustomTabActivity extends AppCompatActivity {
    private FTabView fivBottom;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_customtab);
        fivBottom = (FTabView) findViewById(R.id.fiv_bottom);
        ArrayList<FTabItemBean> tabDatas = new ArrayList<>();
        tabDatas.add(new FTabItemBean("https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=3466696958,2358553465&fm=26&gp=0.jpg"
                ,"https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3946438340,2056913633&fm=15&gp=0.jpg"
                ,"首页","首页"));
        tabDatas.add(new FTabItemBean("https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=3267399396,3513458457&fm=26&gp=0.jpg"
                ,"https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1864984925,351980882&fm=26&gp=0.jpg"
                ,"分类","分类"));
        FTabItemBean fTabItemBean = new FTabItemBean(""
                , ""
                , "扫一扫", "扫一扫");
        fTabItemBean.setBigImage(true);
        tabDatas.add(fTabItemBean);
        tabDatas.add(new FTabItemBean("https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=3561565621,665011732&fm=26&gp=0.jpg"
                ,"https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3756779852,4151493519&fm=26&gp=0.jpg"
                ,"订单","订单"));
        tabDatas.add(new FTabItemBean("https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=2734642560,3073383471&fm=26&gp=0.jpg"
                ,"https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=2734642560,3073383471&fm=26&gp=0.jpg"
                ,"我的","我的"));
        fivBottom.setDatas(tabDatas,0);
    }
}
